package com.sailmi.common.secure.user;

import com.sailmi.common.model.auth.AuthUser;

/**
 * Copyright (c) 2018-2028.
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 *  用户接口
 * @author yzh
 */
public interface IUserProvider {
		/**
		 * 获取用户信息
		 *
		 * @param userId 用户id
		 * @return
		 */
		AuthUser userInfo(Long userId);

	/**
	 * 依据用户账号获取用户信息
	 * @param userAccount
	 * @return
	 */
		AuthUser userInfo(String userAccount);

	/**
	 * 注册用户
	 * @param authUser
	 * @return
	 */
		AuthUser registerUser(AuthUser authUser);

	/**
	 * 修改用户信息
	 * @param authUser
	 * @return
	 */
		AuthUser updateUser(AuthUser authUser);

		/**
		 * 获取用户信息
		 * @param account    账号
		 * @param password   密码
		 * @return
		 */
		AuthUser userInfo(String tenantId, String account,String password);


		/**
		 * 创建企业的时候调用默认用户信息查询
		 * @param user
		 * @return
		 */
        Long  submitUserInfo(AuthUser user);


		Boolean  resetUserPass(String id);

}
